﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserService.aspx.cs" Inherits="CRM.UserService" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Web_CSS/WebCss.css" rel="stylesheet" type="text/css" />
    <link href="Web_CSS/ymPrompt/vista/ymPrompt.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="JavaScript/Jquery.js"></script>
    <script type="text/javascript" src="JavaScript/ManageWeb.js"></script>
    <script type="text/javascript" src="JavaScript/PCASClass.js"></script>
    <script type="text/javascript" src="JavaScript/ymPrompt.js"></script>

    <style type="text/css">
        #BtnEdit
        {
            height: 40px;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server" defaultfocus="txtSearchKey" defaultbutton="BtnSearch">
    <div class="div_All">
        <div class="Body_Title">
            内容管理 》》客户信息</div>
        <div class="Body_Search">
        <table border="0" cellpadding="2" cellspacing="0">
            <tr>
                <td>客户名／企业名称:<input runat="server" id="txtSearchKey" maxlength="20"
                    class="txtInput" />
                &nbsp;状态:<asp:DropDownList ID="DDlState" runat="server">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="0">公共客户</asp:ListItem>
                    <asp:ListItem Value="1">占用客户</asp:ListItem>
                    <asp:ListItem Value="2">成交客户</asp:ListItem>
                </asp:DropDownList>
                &nbsp;类型:<asp:DropDownList ID="DDlClass" runat="server">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="1">供应商</asp:ListItem>
                    <asp:ListItem Value="0">代理商</asp:ListItem>
                </asp:DropDownList>
                    &nbsp;</td>
                <td rowspan="2">
                    <asp:Button ID="BtnSearch" runat="server" Text="查询信息" 
                        OnClick="PagerUserService_PageChanged" Height="40px" />&nbsp;
                    <asp:Button ID="BtnUpdate" runat="server" Text="分配客户" 
                    onclick="BtnUpdate_Click" BackColor="#009999" Font-Bold="True" 
                        ForeColor="White" Height="40px" />&nbsp;
                <input id="BtnEdit" type="button" value="添加客户"  
                style="background-color:#008080; color:yellow; font-weight:bolder;"
                        onclick='javascript:location.href="AddUserMes.aspx"'/></td>
            </tr>
            <tr>
                <td>客户等级:<asp:DropDownList ID="DDLLeave" runat="server">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="0">普通会员</asp:ListItem>
                    <asp:ListItem Value="1">高级会员</asp:ListItem>
                    <asp:ListItem Value="2">审核会员</asp:ListItem>
                    <asp:ListItem Value="3">联盟会员</asp:ListItem>
                </asp:DropDownList>
                &nbsp;所在地区：<select id="DDLProvince" runat="server" name="D1"/>
                    </select> &nbsp;<select id="DDLCity" runat="server" name="D2"/>
                &nbsp;归属:<asp:DropDownList ID="DDlService" runat="server" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                </asp:DropDownList>
                </td>
            </tr>
        </table>
        </div>
        <asp:Repeater ID="RpUserService" runat="server">
            <HeaderTemplate>
                <table cellpadding="3" 
                cellspacing="1" class="Admin_Table">
                    <thead>
                        <tr class="Admin_Table_Title">
                            <th style="width: 10%;">
                                操作
                            </th>
                            <th style="width: 7%;">
                                类型
                            </th>
                            <th style="width: 8%;">
                                等级
                            </th>
                            <th style="width: 15%;">
                                状态
                            </th>
                            <th style="width: 15%;">
                                客户名
                            </th>
                            <th style="width: 35%;">
                                企业名称
                            </th>
                            <th style="width: 13%;">
                                录入时间
                            </th>
                        </tr>
                    </thead>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <input type="checkbox" value='<%#Eval("T_UserID") %>' 
                        name="CheckMes" />&nbsp;
                        <a title="查看详细信息.." 
                        href="#" id='<%#Eval("T_UserID") %>' class="GetMes">
                        <img src="Images/LookMes.gif"/></a>
                    </td>
                    <td>
                        <%#CRM.BaseClass.Common.UserType(Eval("T_UserType"))%>
                    </td>
                    <td>
                        <%#CRM.BaseClass.Common.UserLeave(Eval("T_UserLeave"))%>
                    </td>
                    <td>
                        <%#CRM.BaseClass.Common.UserState(Eval("T_UserState"), 
                        Eval("T_NowService"))%>
                    </td>
                    <td>
                        <%#CRM.BaseClass.Common.NullString(Eval("T_Person"))%>
                    </td>
                    <td>
                        <%#CRM.BaseClass.Common.NullString(Eval("T_CompanyName"))%>
                    </td>
                    <td>
                        <%#Eval("T_DateTime","{0:yyyy-MM-dd}")%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
            </table>
            </FooterTemplate>
        </asp:Repeater>
        <div class="BottomPage">
            <span class="LeftCommon">
                <input id="BtnAllSelect" type="button" value="全选" />&nbsp;
                <asp:Button ID="BtnAllDel" runat="server" Text="删除" 
                OnClick="BtnAllDel_Click" />
            </span> 
                   <span class="RightPage">
                        <webdiyer:AspNetPager ID="PagerUserService" runat="server" AlwaysShow="True" 
                            CustomInfoHTML="共[%RecordCount%]条，[%CurrentPageIndex%] / [%PageCount%]页"
                            FirstPageText="[ 首页 ]" LastPageText="[ 末页 ]" NextPageText="[ 下一页 ]" NumericButtonCount="15"
                            PageSize="50" PrevPageText="[ 上一页 ]" CustomInfoTextAlign="Left" ShowCustomInfoSection="Left"
                            Direction="LeftToRight" Width="100%" InvalidPageIndexErrorMessage="你确定你输入的是数字？！"
                            PageIndexOutOfRangeErrorMessage="没这么多页o(∩_∩)o 哈哈.." SubmitButtonText="转到" CssClass="pageStyle"
                            HorizontalAlign="Right" OnPageChanged="PagerUserService_PageChanged" CustomInfoSectionWidth="20%">
                        </webdiyer:AspNetPager>
                    </span>
        </div>
    </div>
    <asp:HiddenField ID="HSelectID" runat="server" Value="" />
    <asp:HiddenField ID="Province" Value="全国" runat="server"/>
    <asp:HiddenField ID="City" Value="所有地区" runat="server"/>
    <script type="text/javascript">
        InitCitySelect();
    </script>
    </form>
</body>
</html>
